﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCPromotionList.ascx.cs" Inherits="RedHouse.Web.UserControls.UCPromotionList" %>
 <%
     if (NewsList != null)
     {
         foreach (RedHouse.Data.Entities.RedHouseNews item in NewsList)
         {%>
            <div class="promotion-container">
                <div class="promotion-thumb">
                    <a href="Promotions.aspx?id=<%=item.Id %>">
                        <img src="<%=item.NewsDetail.ImageUrl %>" /></a>
                </div>
                <div class="promotion-title">
                    <h1>
                        <%=item.NewsDetail.Title%></h1>
                </div>
                <div class="promotion-description">
                    <%=item.NewsDetail.Description%>
                </div>
            </div>
            <%}
     }%>